package org.consumer.comsumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
*@author LSY
*Time: 2018年12月29日上午11:00:59
*
*
*/
@Component
@RabbitListener(queues = "user.register.queue")
public class UserConsumer {

	@RabbitHandler
	public void execute(Long userId) {
		System.out.println("用户：" + userId + ",完成注册");
	}
}
